package com.yuma.template;

public abstract class Animal {
    // 每个小动物的每一天
    public void daily(){
        // 抽出来
        System.out.println("Animal 早上");
        eat();
        System.out.println("Animal 中午");
        play();
        System.out.println("Animal 晚上");
        sleep();
    }

    public abstract void eat();
    public abstract void play();
    public abstract void sleep();
}
